<?php
define('root',$_SERVER['DOCUMENT_ROOT']."");
define('lib_smarty',root."/libs/smarty");
require_once(lib_smarty."/Smarty.class.php");
$sm=new Smarty();
$sm->compile_check=true;
$sm->debugging=false;
$sm->template_dir=root.$tplstr;
$sm->config_dir=lib_smarty."/congfig";

$sm->compile_dir=root."/tempfile/compile";
$sm->cache_dir=root."/tempfile/cache";

$sm->left_delimiter="[{";
$sm->right_delimiter="}]";
$sm->caching=$iscaching;
$sm->cache_lifetime=$cachtime;

//define("templates",root.'tpls/');
?>